package homework6_24.practice5;

import homework6_24.practice5.jiekou.Scan;
import homework6_24.practice5.jiekou.Swim;
import homework6_24.practice5.jiekou.Swimmer;

public class Submarine extends Swimmer implements Swim, Scan {
	public Submarine(String name, String speed) {
		super(name, speed);
	}

	@Override
	public void scan() {
		System.out.println(this.getName() + "正使用声纳探测器扫描前方移动物体！");
	}

	@Override
	public void swim() {
		System.out.println(this.getName() + "正使用核燃料以" + getSpeed() + "的速度前进");
	}
}
